package com.uphone.kingmall.dialog;

import android.app.Dialog;
import android.content.Context;
import android.os.Bundle;
import android.view.View;
import android.widget.ImageView;
import android.widget.TextView;

import androidx.annotation.NonNull;

import com.china.zhuoyue.R;

/**
 * author : SuMeng
 * e-mail : 986335838@qq.com
 * time   : 2019/02/21
 * desc   : 砍价完成并分享dialog
 */
public class KanJiaShareDialog extends Dialog {

    String mPrice = "";
    public KanJiaShareDialog(@NonNull Context context) {
        super(context);
    }

    public KanJiaShareDialog(Context context, String price) {
        super(context);
        mPrice = price;

    }

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.kingmall_dialog_kanjia_share);
        setCanceledOnTouchOutside(true);
        ImageView ivShareWeixin = findViewById(R.id.iv_share_weixin);
        ImageView ivShareQq = findViewById(R.id.iv_share_qq);
        TextView tvPrice = findViewById(R.id.tv_price);
        tvPrice.setText(mPrice+"元");
        ivShareWeixin.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {

            }
        });
        ivShareQq.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {

            }
        });
    }

}
